﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using YTCMS.Services.Services;
using YTCMS.Core;

namespace App.Controllers
{
    public class ModuleController : Controller
    {
        public readonly ImoduleService _module;
        public ModuleController(ImoduleService module)
        {
            this._module = module;
        }
        //
        // GET: /Module/
        /// <summary>
        /// 导航
        /// </summary>
        /// <returns></returns>
        public ActionResult Index()
        {
            var model = _module.GetMany(s => s.State == (int)CommonState.正常 && s.Type.Equals("PC"), Order.desc, "sort");
            return View(model);
        }
	}
}